package org.feng.demofx.sys;

import lombok.Data;

/**
 * 表头列属性定义
 *
 * @author feng
 */
@Data
public class TableColumnDefine {
    private String columnDesc;
    private Integer order = 0;
    private String fieldName;
    @Deprecated
    private Boolean editable = false;

    public TableColumnDefine (TableColumnDesc tableColumnDesc, String fieldName) {
        this.setColumnDesc(tableColumnDesc.value());
        this.setOrder(tableColumnDesc.order());
        this.setFieldName(fieldName);
        this.setEditable(tableColumnDesc.editable());
    }
}
